package com.maezia.tdr.common.exception;

import com.maezia.tdr.common.enums.StatusCodeEnum;

public class TooManyException extends Exception {

    private StatusCodeEnum codeEnum;

    public TooManyException() {}

    public TooManyException(String message) {
        super(message);
    }

    public TooManyException(StatusCodeEnum codeEnum) {
        super(codeEnum.getMessage());
        this.codeEnum = codeEnum;
    }
}
